import request from '../axios';

export interface FormDataUpdateVo {
  id: string | number;
  appDsgnId: string;
  content: any;
}

// 资源中心 API
export const CenterApi = {
  // 查询资源设计详情
  getDsgnById: async (id: number | string) => {
    return await request.get({url: `/res/center/getDsgnById?id=` + id});
  },
  // 修改表单数据
  updateFormData: async (data: FormDataUpdateVo) => {
    return await request.put({url: `/res/form-dsgn/update`, data});
  }
};
